Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Success response body

{
  "coupons": [
    {
      "id": 1,
      "name": "dsa2",
      "percent_off": 10.0,
      "created_at": "2022-08-16T16:00:04.482Z",
      "stripe_id": "7Ot6KyLe"
    },
    ...
  ],
  "meta": {
    "total_count": 7
  }
}

Params

Param name Description
sort_to
optional

Validations:

  • Must be one of: asc, desc.

sort_by
optional

Validations:

  • Must be one of: id, name, percent_off, created_at.

page
optional

Validations:

  • Must be a Integer